package com.job.zhaokaiqiang;

/**
 * @author DELL
 * @version 1.0
 * @since 2022-07-06 18:16:46
 */
public class Maiji {
    public static void main(String[] args) {
        int mu,gong,xiao;//mu是母鸡的个数,gong是公鸡的个数,xiao是买小鸡的钱数

        for(gong=0;gong<=33;gong++)
        {
            for(mu=0;mu<=20;mu++)
            {
             for(xiao=0;xiao<=100;xiao++)
             {
                 if((gong*3+mu*5+xiao==100)&&(gong+mu+xiao*3==100))
                 {
                     System.out.println("公鸡"+gong+"母鸡"+mu+"小鸡"+xiao*3);
                 }
             }
            }
        }

    }
}
